/**   
* @Description: 首页controller 
*/ 
package org.kskj.ipw.controller;

import org.kskj.ipw.entity.ResponseEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/** 
* @author sztan 
* @date 2016年8月1日 上午10:37:28 
* @version 1.0 
*/
@Controller
public class IndexController extends BaseController {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(IndexController.class);
	private static final String HOME_PAGE = "/index.html";
	
	@RequestMapping(value="/", method={RequestMethod.GET})
	public String index() {
		LOGGER.debug("根路径映射，/ --> " + HOME_PAGE);
		return "redirect:" + HOME_PAGE;
	}
	
	@RequestMapping(value="/getMenu", method={RequestMethod.POST})
	public ResponseEntity getMenu() {
		
		return success(null);
	}
}
